home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form mnu
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- ClientHeight = 2955
- ClientLeft = 3270
- ClientTop = 2115
- ClientWidth = 7710
- ClipControls = 0 'False
- ControlBox = 0 'False
- Height = 3645
- Left = 3210
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 197
- ScaleMode = 3 'Pixel
- ScaleWidth = 514
- Top = 1485
- Visible = 0 'False
- Width = 7830
- Begin TextBox txt
- BackColor = &H00000000&
- BorderStyle = 0 'None
- Height = 285
- Left = 750
- LinkTopic = "ProgMan|ProgMan"
- MultiLine = -1 'True
- TabIndex = 2
- Top = 150
- Visible = 0 'False
- Width = 1275
- End
- Begin PictureBox dosicon
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 480
- Left = 60
- Picture = MNU.FRX:0000
- ScaleHeight = 32
- ScaleMode = 3 'Pixel
- ScaleWidth = 32
- TabIndex = 1
- Top = 90
- Visible = 0 'False
- Width = 480
- End
- Begin PictureBox loader
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 480
- Left = 90
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 0
- Top = 630
- Visible = 0 'False
- Width = 480
- End
- Begin Line l
- X1 = 0
- X2 = 514
- Y1 = 0
- Y2 = 0
- End
- Begin Menu zmnuFile
- Caption = "&File"
- Begin Menu zfile
- Caption = "E&xit"
- Index = 12
- End
- End
- Begin Menu zmnuPmGroups
- Caption = "&Groups"
- Begin Menu zgroup
- Index = 0
- End
- End
- Option Explicit
- Dim oldstyle&
- Dim fheight%, fwidth%
- Sub Form_Load ()
- Dim res&, r%
- If app.PrevInstance Then SendKeys "%B": End
- nl$ = Chr$(13) + Chr$(10)
- 'adjustment for scalemode of the form
- SetScaleData
- SetColor
- loader.BackColor = cdata.bkg
- loader.Move 20, 20, 32, 32
- GetPMGroups
- 'get rid of caption bar
- oldstyle& = GetWindowLong(hWnd, GWL_STYLE): Debug.Print Hex(oldstyle&)
- res& = oldstyle& Xor &HC00000: Debug.Print Hex(res&)
- res& = SetWindowLong(mnu.hWnd, GWL_STYLE, res&)
- ty = screen.TwipsPerPixelY: tx = screen.TwipsPerPixelX
- fheight = GetSystemMetrics(15) + 2
- fwidth = GetSystemMetrics(0)
- mnu.Move 0, 0, fwidth * tx, fheight * ty
- 'draw edge line
- L.X2 = scalewidth
- End Sub
- Sub zfile_click (Index As Integer)
- Dim r%
- Select Case Index
- Case 12: Unload Me
- End Select
- End Sub
- Sub zgroup_Click (Index As Integer)
- Dim r%
- 'load a PM group window
- Dim s$
- s$ = zgroup(Index).Caption
- screen.MousePointer = 11
- r = LoadListWindow(s, 0)
- r = DoEvents()
- screen.MousePointer = 0
- End Sub
-